﻿Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoaded);

function pageLoaded(sender, args) 
{
    var Dom = YAHOO.util.Dom,
        Event = YAHOO.util.Event;
    
    var myConfig = {
        height: '300px',
        width: '530px',
        dompath: true,
        focusAtStart: true
    };
    alert('attempting to create objects');
    YAHOO.log('Create the Editor..', 'info', 'example');
    var myEditor = new YAHOO.widget.SimpleEditor('{textBoxID}', myConfig);
    myEditor.render();
}

function scriptLoader(url)
{
   document.write('<script src="', url, '" type="text/JavaScript"><\/script>');
}